package com.sky.config;

/**
 * ClassName: WebSocketConfiguration
 * Package: com.sky.config
 * Description:
 *
 * @Author BuTang
 * @Create 2023/11/15 10:10
 * @Version 1.0
 */

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * WebSocket配置类，用于注册WebSocket的Bean
 */
@Configuration
public class WebSocketConfiguration {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}